home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0313.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  891 b   |  65 lines

  1.  
  2. Oki, here we go again withanother question.
  3.  
  4.  
  5. Is it slowing the program down if i have alot of procedures
  6. that the main procedures jumps to and return back to, like this:
  7. (I have five of the Main procedures)
  8.  
  9. Procedure Main1
  10. (loadsa Code)
  11. A
  12. (some code)
  13. B
  14. (some code)
  15. C
  16. (some code)
  17. D
  18. (some code)
  19. E
  20. (some code)
  21. F
  22. (some code)
  23. G
  24. (some code)
  25. endproc
  26.  
  27. Procedure A
  28. (do some stuff)
  29. Endproc
  30. Procedure B
  31. (do some stuff)
  32. Endproc
  33. Procedure C
  34. (do some stuff)
  35. Endproc
  36. Procedure D
  37. (do some stuff)
  38. Endproc
  39. Procedure F
  40. (do some stuff)
  41. Endproc
  42. Procedure G
  43. (do some stuff)
  44. Endproc
  45.  
  46.  
  47. Will this be slower than having all the code in Procedure A,B,C,D,E,F ang G
  48. in gosubs inside the Main1 proceure????
  49. But then again if i must have all the code in Procedure A-G inside Main 1 
  50. procedure then i must have all that code inside Main 2-5 also.
  51.  
  52. What will be quickest and easiest?????
  53.  
  54.  
  55. Thanx
  56.  
  57. Morten Bolstad
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.